package com.chinasofti.zbest.dao;

import com.chinasofti.zbest.dao.model.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chinasofti.zbest.service.info.UserModifyInformationInfo;
import com.chinasofti.zbest.web.form.ModifyUserInformationForm;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户 Mapper 接口
 * </p>
 *
 * @author zbest
 * @since 2019-05-28
 */
public interface UserMapper extends BaseMapper<User> {
    User findByUsernameAndPassword(@Param("username") String username,
                                   @Param("password") String password);

    void modifyPassword(@Param("username") String username,
                        @Param("password") String newpassword);


    void updateUserInformation( @Param("userId")Integer userId,
                                @Param("birthday") String birthday,
                                @Param("nikeName") String nikeName,
                                @Param("username") String username,
                                @Param("userPhone") String userPhone,
                                @Param("userSex") String userSex);
}